/*
** team.h for  in /home/faye_m//zappy
** 
** Made by mouhamed faye
** Login   <faye_m@epitech.net>
** 
** Started on  Tue Jun 21 20:20:33 2011 mouhamed faye
** Last update Sun Jul 10 22:08:17 2011 vincent ricard
*/
#ifndef __TEAM__
#define __TEAM__

typedef struct		s_option
{
  char			*option;
  double		(*duration)(char *cmd, int t);
}			t_option;

typedef struct		s_good_request
{
  char			*name;
  double		duration;
  int			time;
}			t_good_request;

typedef struct		player
{
  int			num_joueur;
  int			ttl_joueur;
  int			max_req;
  int			nb_player;
  int			compteur_tab;
  t_good_request	tab_req[10];
  struct		player *next;
}			Class_player;

typedef	struct		team
{
  char			*team_name;
  int			nb_player;
  int			max_player;
  Class_player		*list_player;
  struct team		*next;
}			Class_team;

Class_team		*add_team(Class_team *, char *);
t_good_request		*requete_parser(char *cmd, int t);
int			currunt_time();
double			cmd_avance(char *cmd, int t);
double			cmd_droite(char *cmd, int t);
double			cmd_gauche(char *cmd, int t);
double			cmd_voir(char *cmd, int t);
double			cmd_inventaire(char *cmd, int t);
double			cmd_prend_obj(char *cmd, int t);
double			cmd_pose_obj(char *cmd, int t);
double			cmd_expulse(char *cmd, int t);
double			cmd_broadcast_text(char *cmd, int t);
double			cmd_incantation(char *cmd, int t);
double			cmd_fork(char *cmd, int t);
double			cmd_connect_nbr(char *cmd, int t);
double			cmd__(char *cmd, int t);
#define MAX_TEAM 512
#endif
